package com.hzit.controller;

import com.hzit.service.IClassesService;
import com.hzit.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/classes")
public class ClassesController {
	@Autowired
	private IClassesService classesService;
	//1. 查询所有班级
	@GetMapping("/list")
	public R list(){
		return R.ok(classesService.list());
	}
}
